import { createApp } from 'vue'
import App from './App.vue'

import Header from './pages/Header.vue'

//createApp(App).mount('#app')
const app = createApp(App);

//全局注册：在这中间写组件的注册
app.component("Header", Header);
//全局依赖注入
app.provide("globalData", "我是全局数据(main.js)");

app.mount('#app');
